import http from '@/utils/http'
import {ipConfig} from "../../../../utils/ip-map-config";


const jsonIp = 'http://' + window.location.host
export function getMenuList() {
    // return http({
    //     method: 'get',
    //     url: '/JSON/menu.json',
    //     baseURL: jsonIp
    // })

    return http.get(jsonIp + '/JSON/menu.json', {
        // loadMsg: '加载。。。。'
    })
}


export function getAllArea() {
    return http({
        method: 'get',
        url: 'water/pare/allArea?areaId=1',
        // loadMsg: '获取。。。。'
    })
}

export function getTreeNodeManual() {
    return http({
        method: 'get',
        url: 'server/devmng/getTreeNodeManual?id=1',
        baseURL: ipConfig.device()
    })
}
